package com.aerotechnic.entities;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

@Entity
@Table(name = "DRF")
public class DRF extends JobCard {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@OneToMany(fetch = FetchType.EAGER, targetEntity = Outillage.class)
	private Set<Outillage> outillages = new HashSet<Outillage>(0);

	public Set<Outillage> getOutillages() {
		return outillages;
	}

	public void setOutillages(Set<Outillage> outillages) {
		this.outillages = outillages;
	}

	@Override
	public String toString() {
		return "DRF [outillages=" + outillages + ", numero=" + numero
				+ ", schedStartDate=" + schedStartDate + ", SchedEndDate="
				+ SchedEndDate + ", ActStartDate=" + ActStartDate
				+ ", ActEndDate=" + ActEndDate + ", zone=" + zone + ", spec="
				+ spec + ", phase=" + phase + ", work=" + work + ", actWork="
				+ actWork + ", skill=" + skill + ", status=" + status
				+ ", nbRessources=" + nbRessources + ", visite=" + visiteId    
				+ ", id=" + id + "]";
	}
	
}
